package org.jeecg.modules.xl.store.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.xl.store.entity.XlCustomerMystore;
import org.jeecg.modules.xl.store.entity.XlCustomerStoreInfo;
import org.jeecg.modules.xl.store.mapper.XlCustomerMystoreMapper;
import org.jeecg.modules.xl.store.service.IXlCustomerMystoreService;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 客户门店工作人员
 * @Author: jeecg-boot
 * @Date:   2024-10-24
 * @Version: V1.0
 */
@Service
public class XlCustomerMystoreServiceImpl extends ServiceImpl<XlCustomerMystoreMapper, XlCustomerMystore> implements IXlCustomerMystoreService {
	
//	@Autowired
//	private XlCustomerMystoreMapper xlCustomerMystoreMapper;
//
	@Override
	public List<XlCustomerMystore> selectByMainId(String mainId) {
		return baseMapper.selectByMainId(mainId);
	}

	public List<XlCustomerStoreInfo> selectStoresByUserId(@Param("userid") String userid){
		return baseMapper.selectStoresByUserId(userid);
	}

	/**
	 * 根据采购人员所负责的渠道类型，查询所有的渠道类型的门店
	 * @param userid
	 * @return
	 */
	public List<XlCustomerStoreInfo> selectStoresByUserId2(QueryWrapper<XlCustomerStoreInfo> wrapper){
		return baseMapper.selectStoresByUserId2(wrapper);
	}
}
